import { queueJob, queue } from '../queue.js';
const job1 = () => {
  console.log('job1');
};
const job2 = () => {
  console.log('job2');
};
const job3 = () => {
  console.log('job3');
};
queueJob(job1);
queueJob(job1);
queueJob(job2);
queueJob(job3);
console.log('添加完了=====', queue);

setTimeout(() => {
  queueJob(job3);
}, 1000);
